<?php

class Application_Form_Productoptionvalue extends Zend_Form {
    
    public function init() {
        $this->setName('Productoptionvalue');
        
        $product_option_value_id = new Zend_Form_Element_Hidden('product_option_value_id');
        
        $product_option_name = new Zend_Form_Element_Multiselect('product_option_name');
        $product_option_name->setLabel('Tính năng')
                ->setRequired(true)
                ->addFilters(array('StripTags', 'StringTrim'))
                ->addValidator('NotEmpty')
                ->setRegisterInArrayValidator(false);
     
        $product_option_value_name = new Zend_Form_Element_Text('product_option_value_name');
                $product_option_value_name->setLabel('Tên :')
                                    ->setRequired(true);
               
        $btn_submit = new Zend_Form_Element_Submit('submit');
        $btn_submit->setAttrib('id', 'submit');
        $btn_submit->setlabel('Đồng ý');

        $btn_cancel = new Zend_Form_Element_Submit('cancel');
        $btn_cancel->setAttrib('id', 'cancel');
        $btn_cancel->setLabel('Hủy bỏ');
        
        $this->addElements(array($product_option_name, $product_option_value_name, $product_option_value_id, $btn_submit, $btn_cancel
        ));
    }
}